package com.biz.primus.ms.commodity.dao.po;


import com.biz.primus.ms.base.jpa.po.BaseEntityPKIncrement;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 商家商品价格数据
 *
 * @author david-liu
 * @date 2016年12月23日
 * @reviewer
 * @see
 */
@Entity
@Table(name = "pro_vendor_product_price")
public class VendorPrice extends BaseEntityPKIncrement {

    private static final long serialVersionUID = 475969746910545139L;

    /**
     * 商家 Id
     */
    @Column(nullable = false)
    private Long vendorId;

    /**
     * 商品 Id
     */
    @Column(nullable = false)
    private Long productId;

    /**
     * 成本价
     */
    @Column(nullable = false)
    private Integer costPrice;

    /**
     * 市场价
     */
    @Column(nullable = false)
    private Integer marketPrice;

    /**
     * 结算价
     */
    @Column(nullable = false)
    private Integer finalPrice;

    /**
     * 删除标识
     */
    @Column
    private Boolean deleteFlag = Boolean.FALSE;

    public Long getVendorId() {
        return vendorId;
    }

    public void setVendorId(Long vendorId) {
        this.vendorId = vendorId;
    }

    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public Integer getCostPrice() {
        return costPrice;
    }

    public void setCostPrice(Integer costPrice) {
        this.costPrice = costPrice;
    }

    public Integer getMarketPrice() {
        return marketPrice;
    }

    public void setMarketPrice(Integer marketPrice) {
        this.marketPrice = marketPrice;
    }

    public Integer getFinalPrice() {
        return finalPrice;
    }

    public void setFinalPrice(Integer finalPrice) {
        this.finalPrice = finalPrice;
    }
}
